<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
    <!-- Loading Bootstrap -->
    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
    <!-- Loading Flat UI -->
    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
</head>
<body>		
	<legend>添加子分类</legend> 	
	<div class="span12" style="width: 600px;">	
		<form action="" method="post">
		<table class="table table-bordered table-hover">
			<tbody>
				<tr>
				  <th width="120px" >类型属性</th>
				  <th width="100px">
				  	<select name="type_tid"  style="width: 160px;">
						<option value="0">请选择</option>						
						{{foreach from="$typeData" value="$v"}}
						<option value="{{$v['tid']}}"{{if value="$v['tid']==$oldData['type_tid']"}} selected{{endif}}>{{$v['tname']}}</option>
						{{endforeach}}
					</select>
				  </th>
				</tr>
				<tr>
					<td>分类名称</td>
					<td><input type="text" name="cname" value="{{$oldData['cname']}}"/></td>
				</tr>
				<tr>
					<td>排序</td>
					<td><input type="text" name="sort" value="{{$oldData['sort']}}"/></td>
				</tr>
				<tr>
					<td colspan='2' align='left'>
						<input type="hidden" name="cid" value="{{$_GET['cid']}}"/>
						<button type="submit" class="btn btn-primary">确定修改</button>
					</td>
				</tr>
				
			</tbody>	
		</form>
	</div>
</body>
</html>
